/* GUI CONVERTED from rssddel.p (converter v1.76) Thu Apr 25 19:01:24 2002 */
/* rssddel.p - Release Management Supplier Schedules                          */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.4.1.2 $                                                       */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 7.3    LAST MODIFIED: 04/25/94        BY: WUG *GJ59*             */
/* REVISION: 8.6    LAST MODIFIED: 05/20/98        BY: *K1Q4* Alfred Tan      */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00        BY: *N0KP* Mark Brown      */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* Old ECO marker removed, but no ECO header exists *F0QB*                    */
/* $Revision: 1.4.1.2 $   BY: Jean Miller        DATE: 04/16/02  ECO: *P05H*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* DELETE A PO LINE ITEM RECORD */

{mfdeclre.i}

define input parameter pod_recid as recid.

define variable old_db as character.
define variable sdb_err as integer no-undo.

find pod_det where recid(pod_det) = pod_recid no-lock.
find po_mstr where po_nbr = pod_nbr no-lock.
find si_mstr where si_site = pod_site no-lock.

if si_db <> global_db then do:
   old_db = global_db.
   {gprun.i ""gpalias3.p"" "(input si_db, output sdb_err)"}
/*GUI*/ if global-beam-me-up then undo, leave.

   {gprun.i ""rssddela.p"" "(input pod_nbr, input pod_line)"}
/*GUI*/ if global-beam-me-up then undo, leave.

   {gprun.i ""gpalias3.p"" "(input old_db, output sdb_err)"}
/*GUI*/ if global-beam-me-up then undo, leave.

end.

{gprun.i ""rssddela.p"" "(input pod_nbr, input pod_line)"}
/*GUI*/ if global-beam-me-up then undo, leave.

